package com.dianping.tpfun.supervised.decisiontree.bean;

import java.util.List;
import java.util.Map;

/**特征属性对象，主要是元信息
 * @author taiwei.zhang
 */
public class DefaultFeature<T> {

    String desc;
    //特征类型，离散 or 连续 1-离散 2-连续
    int type;
    int index;
    Class<T> dataClass;
    Map<Comparable,List<DefaultData>> partionDatas;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Class<T> getDataClass() {
        return dataClass;
    }

    public void setDataClass(Class<T> dataClass) {
        this.dataClass = dataClass;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public Map<Comparable,List<DefaultData>> getPartionDatas() {
        return partionDatas;
    }

    public void setPartionDatas(Map<Comparable,List<DefaultData>> partionDatas) {
        this.partionDatas = partionDatas;
    }

}
